{% extends 'templates/default_template.html' %}
{%block content%}
<h1>Step {{step.workflow_element.name}} #{{step.key.id}}</h1>
<p>Project: {{step.workflow_element.workflow.project.name}}</p>
<p>Requested by: {{step.request.requestor.name}}</p>
<p>Part of request: <a href="/requests/{{step.request.key}}">{{step.request.name}}</a></p>
<p>Status: {{step.status}}</p>
{%ifnotequal step.status "pending"%}
<p>Modified by <a href="/users/{{step.modified_by.key}}">{{step.modified_by.name}}</a> on {{step.modified|date:"D d M Y h:i A" }}</p>
<p>Result: {{step.result|default_if_none:step.status}}</p>
<p>Additional comments: {{step.extended_comment|default_if_none:"No comments"}}</p>
{%endifnotequal%}
<hr />
{%if not step.modified_by %}
<a href="/steps/modify/{{step.key}}">Modify step</a>
{%endif%}
{%endblock content%}